<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE HTML >

<html lang="en-US">
	<head>
		<meta charset="UTF-8">
		<title>项目管理系统-成员</title>

		<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
		<script type="text/javascript" src="js/jQuery.js"></script>
		<script type="text/javascript" src="js/bootstrap.min.js"></script>
		<style type="text/css">
body {
	padding-top: 40px;
	background-color: #3D71BC;
	background-image: url("img/pro-bg1.jpg");
	background-repeat: no-repeat;
	width:1005px;
}

.body-bgc {
	margin-top: 30px;
	padding-top: 20px;
	background-color: #bod4e5;
	background: url("img/wash-white-30.png") repeat scroll 0 0 transparent;
}

.con {
	margin-left: 100px;
}

.con-foot {
	margin: 25px 100px;;
}
</style>

	</head>
	<body>
		<%@ include file="include/topbar.jsp"%>

		<!--网页正文-->


		<div class="container well body-bgc">

			<div>
				<h3>
					编辑目标
				</h3>
			</div>
			<hr />
			<!-- 下半部分 -->

			<div class="span6 con">

				<form action="editgoal.action?id=${goal.id}" method="post">
					<label>
						目标名称
					</label>
					<input type="text" class="input-xlarge span5" name="goal.name"
						value="${goal.name }" />
					<label>
						目标描述
					</label>
					<textarea rows="3" class="input-xlarge span5" cols=""
						name="goal.content">
					${goal.content}
				</textarea>

				</form>
					<div class="con-foot ">
						<a href="goal.action?id=${goal.id }" class="btn ">返回</a>
						<button type="submit" class="btn btn-success"
							style="margin-left: 50px;">
							<i class="icon-th-large icon-white"></i>编辑目标
						</button>
					</div>

			</div>
		</div>
<script type="text/javascript">
	$(function() {
			$("input[name='goal.name']").popover({
				title : "信息提示",
				content : "目标名称不能为空",
				trigger : "manual"
			});

			$("textarea").popover({
				title : "信息提示",
				content : "目标描述不能为空",
				trigger : "manual"
			});

			$("input[name='goal.name']").click(function() {
				$(this).popover("hide");
			});

			$("textarea").click(function() {
				$(this).popover("hide");
			});
			$("button").click(function() {
				if ($("input[name='goal.name']").val() == "") {
					$("input[name='goal.name']").popover("show");
					return false;
				}

				if ($("textarea").val() == "") {
					$("textarea").popover("show");
					return false;
				}

				$("form").submit();

			});

		});
</script>

	</body>
</html>

